﻿using StarsAdmin.Core.Enums;

namespace StarsAdmin.Core.DB.Entities
{
    public class FileEntity : BaseEntity
    {
        /// <summary>
        /// 文件名
        /// </summary>
        public string FileName { get; set; }

        /// <summary>
        /// 保存文件名
        /// </summary>
        public string SaveFileName { get; set; }

        /// <summary>
        /// 文件扩展名
        /// </summary>
        public string Extension { get; set; }

        /// <summary>
        /// 文件类型
        /// </summary>
        public string Type { get; set; }

        /// <summary>
        /// 文件目录
        /// </summary>
        public string FileDirectory { get; set; }

        /// <summary>
        /// 文件字节长度
        /// </summary>
        public long Size { get; set; }

        /// <summary>
        /// 文件大小格式化
        /// </summary>
        public string SizeFormat { get; set; }

        /// <summary>
        /// 链接地址
        /// </summary>
        public string Url { get; set; }

        /// <summary>
        /// md5码，防止上传重复文件
        /// </summary>
        public string Md5 { get; set; }
    }
}